import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'
import RootView from '../router'

export default class Homes extends Component {
    render() {
        // console.log(this.props)
        const { child } = this.props
        return (
            <div>
                <NavLink to="/home/one">第一页</NavLink>
                ---
                <NavLink to="/home/two">第二页</NavLink>
                ---
                <NavLink to="/home/my">我的</NavLink>

                <div>
                    <RootView routes = { child }/>
                </div>
            </div>
        )
    }
}
